from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from options import options

url = r'http://172.16.22.105:8080/bsams/front/login.do'
driver = webdriver.Chrome(options=options)
driver.get(url)
driver.maximize_window()

driver.find_element(By.ID,'taskId').clear()
driver.find_element(By.ID,'taskId').send_keys('1')
driver.find_element(By.ID,'loginName').clear()
driver.find_element(By.ID,'loginName').send_keys('test08')
driver.find_element(By.ID,'password').clear()
driver.find_element(By.ID,'password').send_keys('123456')
driver.find_element(By.ID,'vericode').clear()
driver.find_element(By.ID,'vericode').send_keys('shtd')
sleep(1)
driver.find_element(By.XPATH,'//*[@id="fmedit"]/div[2]/div[6]/input').click()
sleep(2)

driver.find_element(By.XPATH,'/html/body/div[1]/div/div[2]/a[3]').click()
sleep(1)